using System.Collections.Generic;

namespace Wayloop.Fusion.Core.Objects
{
    public class ProjectVersion : FusionObject<int>
    {
        protected Project project;
        protected string name;
        protected IList<Task> tasks;

        public virtual Project Project
        {
            get { return project; }
            set { project = value; }
        }

        public virtual string Name
        {
            get { return name; }
            set { name = value; }
        }

        public virtual IList<Task> Tasks
        {
            get { return tasks; }
            protected set { tasks = value; }
        }


        public ProjectVersion()
        {
            tasks = new List<Task>();
        }


        public override int GetHashCode()
        {
            return GetHashCode(Project, Name);
        }
    }
}